package com.kkcf.ternary_operator;

public class TernaryOperatorTest02 {
    public static void main(String[] args) {
        int height1 = 150;
        int height2 = 210;
        int height3 = 165;

        /*int temp = height1 > height2 ? height1 : height2;
        int max = temp > height3 ? temp : height3;*/

        int max = height1 > height2 ? height1
                : height2 > height3 ? height2
                : height3;

        System.out.println(max); // 210
    }
}
